import type { ProfileInfo } from '@/types/user'
import { RequestAxios } from '@/utils/RequestAxios'

export const getUserInfoAPI = () => RequestAxios.get<ProfileInfo>('/member/profile')

//上传api
export const updateAvatarAPI = (data: FormData) =>
  RequestAxios.upload('/member/profile/avatar', data)

//更新用户信息
export const updateUserInfoAPI = (data: ProfileInfo) => RequestAxios.put('/member/profile', data)
